import Axios from 'axios/lib/axios'
const basePath = 'http://cloud-services.e-lingcloud.com'

export function postJSON (url, data) {
  return Axios.post(basePath + url, JSON.stringify(data), {
    timeout: 30000,
    headers: {
      'Content-Type': 'application/json;encoding=UTF-8'
    }
  })
}
